package 并发编程06.jdk里面的ExecutorService;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author：idea
 * @date：2018/8/12
 *
 */
public class ExecutorServiceTest {
    public static void main(String[] args) {
        ExecutorService executorService=Executors.newFixedThreadPool(10);
        for(int i=0;i<10;i++){
            ThreadItem threadItem=new ThreadItem();
            executorService.execute(threadItem);
        }
    }
}
